# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: site-packages\ntlm_auth\constants.py
"""
    [MS-NLMP] v28.0 2016-07-14

    2.2 Message Syntax
    The signature field used in NTLM messages
"""
NTLM_SIGNATURE = b"NTLMSSP\x00"


class MessageTypes(object):
    NTLM_NEGOTIATE = 1
    NTLM_CHALLENGE = 2
    NTLM_AUTHENTICATE = 3


class AvFlags(object):
    AUTHENTICATION_CONSTRAINED = 1
    MIC_PROVIDED = 2
    UNTRUSTED_SPN_SOURCE = 4


class NegotiateFlags(object):
    NTLMSSP_NEGOTIATE_56 = 2147483648
    NTLMSSP_NEGOTIATE_KEY_EXCH = 1073741824
    NTLMSSP_NEGOTIATE_128 = 536870912
    NTLMSSP_RESERVED_R1 = 268435456
    NTLMSSP_RESERVED_R2 = 134217728
    NTLMSSP_RESERVED_R3 = 67108864
    NTLMSSP_NEGOTIATE_VERSION = 33554432
    NTLMSSP_RESERVED_R4 = 16777216
    NTLMSSP_NEGOTIATE_TARGET_INFO = 8388608
    NTLMSSP_REQUEST_NON_NT_SESSION_KEY = 4194304
    NTLMSSP_RESERVED_R5 = 2097152
    NTLMSSP_NEGOTIATE_IDENTITY = 1048576
    NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY = 524288
    NTLMSSP_RESERVED_R6 = 262144
    NTLMSSP_TARGET_TYPE_SERVER = 131072
    NTLMSSP_TARGET_TYPE_DOMAIN = 65536
    NTLMSSP_NEGOTIATE_ALWAYS_SIGN = 32768
    NTLMSSP_RESERVED_R7 = 16384
    NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED = 8192
    NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED = 4096
    NTLMSSP_ANOYNMOUS = 2048
    NTLMSSP_RESERVED_R8 = 1024
    NTLMSSP_NEGOTIATE_NTLM = 512
    NTLMSSP_RESERVED_R9 = 256
    NTLMSSP_NEGOTIATE_LM_KEY = 128
    NTLMSSP_NEGOTIATE_DATAGRAM = 64
    NTLMSSP_NEGOTIATE_SEAL = 32
    NTLMSSP_NEGOTIATE_SIGN = 16
    NTLMSSP_RESERVED_R10 = 8
    NTLMSSP_REQUEST_TARGET = 4
    NTLMSSP_NEGOTIATE_OEM = 2
    NTLMSSP_NEGOTIATE_UNICODE = 1


class SignSealConstants(object):
    CLIENT_SIGNING = b"session key to client-to-server signing key magic constant\x00"
    SERVER_SIGNING = b"session key to server-to-client signing key magic constant\x00"
    CLIENT_SEALING = b"session key to client-to-server sealing key magic constant\x00"
    SERVER_SEALING = b"session key to server-to-client sealing key magic constant\x00"
